//
//  StyleViewCollectionCell.m
//  Example
//
//  Created by admin on 2020/4/15.
//  Copyright © 2020 admin. All rights reserved.
//

#import "StyleViewCollectionCell.h"

@implementation StyleViewCollectionCell


-(instancetype)initWithFrame:(CGRect)frame{
    if (self == [super initWithFrame:frame]) {
        [self confitUI];
    }
    return self;
}

-(void)confitUI{
    [self addSubview:self.titleLab];
}
-(UILabel *)titleLab{
    
    if (!_titleLab) {
        _titleLab = [UILabel new];
        _titleLab.textColor = UIColor.whiteColor;
    }
    return _titleLab;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    [_titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self).mas_offset(KPAND_DEF);
        make.centerY.mas_equalTo(self);
    }];
}
@end
